﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="tooladmin_Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Đại Bi Tâm - Administrator Tools</title>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 100%; height: 550px;">
        <table style="width: 100%; height: 550px;">
            <tr>
                <td valign="middle" align="center">
                    <asp:Login ID="Login1" runat="server" Width="580px" Height="360px" PasswordLabelText="Mật khẩu:"
                        RememberMeText="Nhớ cho lần đăng nhập sao." TitleText="Đăng nhập" UserNameLabelText="Tên đăng nhập:"
                        OnLoggedIn="Login1_LoggedIn" BorderWidth="1px" BorderColor="Gray">
                        <LayoutTemplate>
                            <div style="height: 360px; width: 580px;">
                                <div style="float: left; width: 241px;">
                                    <img src="/img/Sites/login.jpg" />
                                </div>
                                <div style="float: left; width: 339px;">
                                    <div style="text-align: center; font-weight: bold; margin-top: 50px">
                                        http://phatdao.com
                                    </div>
                                    <div style="text-align: center; margin-top: 40px">
                                        Bạn phải đăng nhập trước khi muốn điều khiển website.<br />
                                        Hãy nhập tên và mật khẩu.
                                    </div>
                                    <br />
                                    <table border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse;">
                                        <tr>
                                            <td>
                                                <table border="0" cellpadding="0" style="width: 315px;">
                                                    <%-- <tr>
                                                        <td align="center" colspan="2">
                                                            Đăng nhập
                                                        </td>
                                                    </tr>--%>
                                                    <tr>
                                                        <td align="right">
                                                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Tên 
                                            đăng nhập:</asp:Label>
                                                        </td>
                                                        <td align="left">
                                                            <asp:TextBox ID="UserName" runat="server" Width="150px"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                                                ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right">
                                                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Mật 
                                            khẩu:</asp:Label>
                                                        </td>
                                                        <td align="left">
                                                            <asp:TextBox ID="Password" runat="server" TextMode="Password" Width="150px"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                                                ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2">
                                                            <br />
                                                            <asp:CheckBox ID="RememberMe" runat="server" Text="Nhớ cho lần đăng nhập sao." />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="center" colspan="2" style="color: Red;">
                                                            <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="Center" colspan="2">
                                                            <br />
                                                            <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Đăng Nhập"
                                                                ValidationGroup="Login1" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <div style="clear: both">
                                </div>
                            </div>
                        </LayoutTemplate>
                    </asp:Login>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
